public class Training01 {
    public static void main(String[] args) {
        int a1, a10, a100,i;
        for (i =100; i<999;i++){
            a1=i%10;
            a10=i%100/10;
            a100=i/100;
            if (i==a1*a1*a1+a10*a10*a10+a100*a100*a100);
            System.out.println(i+"是水仙花数");
        }
    }
}